#ifndef CURRICULUM_H
#define CURRICULUM_H

#include <QObject>

class Curriculum : public QObject
{
    Q_OBJECT
public:
    explicit Curriculum(QObject *parent = nullptr);
    virtual ~Curriculum();
    Curriculum(const Curriculum & a) : QObject (nullptr)
    {
        this->cur_id = a.cur_id;
        this->cur_name = a.cur_name;
        this->cur_numbers = a.cur_numbers;
        this->cur_intro = a.cur_intro;
        this->cur_teacher = a.cur_teacher;
        this->cur_school = a.cur_school;
        this->cur_time = a.cur_time;
    }
    Curriculum& operator=(const Curriculum& a)
    {
        this->cur_id = a.cur_id;
        this->cur_name = a.cur_name;
        this->cur_school = a.cur_school;
        this->cur_numbers = a.cur_numbers;
        this->cur_intro = a.cur_intro;
        this->cur_teacher = a.cur_teacher;
        this->cur_time = a.cur_time;
        return *this;
    }

    Q_PROPERTY(int cur_id READ getCur_id)
    Q_PROPERTY(QString cur_name READ getCur_name)
    Q_PROPERTY(QString cur_school READ getCur_school)
    Q_PROPERTY(int cur_numbers READ getCur_numbers)
    Q_PROPERTY(QString cur_intro READ getCur_intro)
    Q_PROPERTY(QString cur_teacher READ getCur_teacher)
    Q_PROPERTY(QString cur_time READ getCur_time)

    int getCur_id();
    QString getCur_name();
    QString getCur_school();
    int getCur_numbers();
    QString getCur_intro();
    QString getCur_teacher();
    QString getCur_time();

public:
    int                         cur_id{-1};
    QString                     cur_name;
    QString                     cur_school;
    int                         cur_numbers{-1};
    QString                     cur_intro;
    QString                     cur_teacher;
    QString                     cur_time;
};

#endif // CURRICULUM_H
